<script>
    $(function () {
        var pgzsbl = $("#id_pgzsbl").val();
        $("#pgzsbl").html(formatJe2(pgzsbl * 10000 / 10000 * 100) + '%');
        $("#pgzsbl_1").html(formatJe2(pgzsbl * 10000 / 10000 * 100) + '%');
        var dqjyzs = $("#id_dqjyzs").val();
        $("#dqjyzs_1").html(formatJe2(dqjyzs));
        var tzjyzs = $("#id_tzjyzs").val();
        $("#tzjyzs").html(formatJe2(tzjyzs));
        $("#tzjyzs_1").html(formatJe2(tzjyzs));
        var bzjbl = $("#id_bzjbl").val();
        $("#bzjbl").html(formatJe2(bzjbl * 10000 / 10000) + '%');
        $("#bzjbl_1").html(formatJe2(bzjbl * 10000 / 10000) + '%');
        var dqbzjbl = $("#id_dqbzjbl").val();
        $("#dqbzjbl").html(formatJe2(dqbzjbl * 10000 / 10000 * 100) + '%');
        $("#dqbzjbl_1").html(formatJe2(dqbzjbl * 10000 / 10000 * 100) + '%');
        var bzjje = $("#id_bzjje").val();
        $("#bzjje").html(formatJe2(bzjje));
        var wshzje = $("#id_wshzje").val();
        $("#wshzje").html(formatJe2(wshzje));
        $("#wshzje_1").html(formatJe2(wshzje));
        var result = parseFloat(pgzsbl) + parseFloat(dqbzjbl) + 0.02
        $("#result").html(formatJe2(result * 10000 / 10000 * 100) + '%');
        //库存金额 * [ B - (A + C)]
        var bcbzjje = parseFloat(wshzje) * [parseFloat(bzjbl) / 100 - (parseFloat(pgzsbl) + parseFloat(dqbzjbl) )];
        //  alert(parseFloat(wshzje) + "---" + parseFloat(dqbzjbl) + "----" + parseFloat(bzjbl) / 100 + "----" + parseFloat(pgzsbl));
        $("#bcbzjje").html(formatJe2(bcbzjje));
    });
</script>
<input id="id_pgzsbl" type="hidden" value="${(bzjyj.pgzsbl)!0}"/>
<input id="id_dqjyzs" type="hidden" value="${(bzjyj.dqjyzs)!0}"/>
<input id="id_tzjyzs" type="hidden" value="${(bzjyj.tzjyzs)!0}"/>
<input id="id_bzjbl" type="hidden" value="${(bzjyj.bzjbl)!0}"/>
<input id="id_bzjje" type="hidden" value="${(bzjyj.bzjje)!0}"/>
<input id="id_wshzje" type="hidden" value="${(bzjyj.wshzje)!0}"/>
<input id="id_dqbzjbl" type="hidden" value="${(bzjyj.dqbzjbl)!0}"/>
<div title="保证金预警详细" style="height: 100%;overflow-y: auto">
    <table style="width: 100%" class="tb tab-t t-bor">
        <tr>
            <th> A %：</th>
            <td colspan="3"> 普钢指数比例【<span id="pgzsbl"></span>】</td>

        </tr>
        <tr>
            <th>说明：</th>
            <td colspan="3"> (当日普钢指数【<span id="dqjyzs_1"></span>】-投资付款时间普钢指数【<span
                    id="tzjyzs"></span>】)/投资付款时间普钢指数【<span
                    id="tzjyzs_1"></span>】
            </td>

        </tr>

        <tr>
            <th> B %：</th>
            <td colspan="3">保证金比例【<span id="bzjbl"></span>】</td>

        </tr>

        <tr>
            <th> C %：</th>
            <td colspan="3"> 实时保证金比例【<span id="dqbzjbl"></span>】</td>

        </tr>
        <tr>
            <th>说明：</th>
            <td colspan="3"> 保证金金额【<span id="bzjje"></span>】/未赎货库存金额【<span id="wshzje"></span>】</td>

        </tr>
        <tr>
            <th>基准值：</th>
            <td colspan="3"> 5%</td>

        </tr>
        <tr>
            <th> A+C+2%</th>
            <td colspan="3"><span id="result"></span></td>
        </tr>
        <tr>
            <th>若A下降幅度>基准值 或者 A+C+2%<=B</th>
            <td style="color: red;font-weight: bold" colspan="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                &nbsp;&nbsp;&nbsp;&nbsp;
                追加保证金
            </td>

        </tr>
        <tr>
            <th>需要追加保证金金额：</th>
            <td style="color: red;font-weight: bold" colspan="3">
                库存金额 * [ B - (A + C)]<br/>
                <span id="wshzje_1"></span> * [<span id="bzjbl_1"></span> - (<span id="pgzsbl_1"></span> + <span
                    id="dqbzjbl_1"></span>)]= <span id="bcbzjje"></span>
            </td>

        </tr>
    </table>
</div>
